Repository navigation
fix(web): search all New RAG documents and restore scrolling - #44818
Merged
Merged
Conversation
Contributor
Pyrefly Type Coverage
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #44818 +/- ##
=======================================
Coverage 89.45% 89.45%
=======================================
Files 5994 5995 +1
Lines 375954 376002 +48
Branches 76162 76174 +12
=======================================
+ Hits 336321 336371 +50
+ Misses 33610 33609 -1
+ Partials 6023 6022 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
hyoban
marked this pull request as ready for review
October 27, 2026 06:14
hyoban
requested review from
QuantumGhost,
crazywoola,
laipz8200 and
lyzno1
as code owners
October 27, 2026 06:14
FFXN
approved these changes
Oct 27, 2026
3 of 5 tasks
hyoban
added a commit
that referenced
this pull request
Oct 27, 2026
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> (cherry picked from commit e8b9a3c)
FFXN
pushed a commit
that referenced
this pull request
Oct 27, 2026
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> (cherry picked from commit e8b9a3c)
3 of 5 tasks
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #44811.
The New RAG Documents page filters only loaded cursor pages and stops its automatic scan after 20 pages. Its content also lacks a bounded vertical scroller inside the knowledge-space shell, leaving lower rows and Load more at risk of clipping.
Send search and status filters through the Console API to KnowledgeFS and paginate matching results directly. Give the composed Documents surface its own bounded scroll area while retaining partial-result, retry, and selection safeguards.
Keep the toolbar mounted while results load, fail, or become empty, including when clearing a query opened from a direct link. Search and status controls remain usable independently of result loading. The toolbar owns upload and metadata actions for both populated and empty collections. Debounce API search input by 300 ms while keeping typing responsive; direct-link searches load immediately and clearing a query immediately restores the full list.
Refresh server-filtered membership when accepted task updates change queued/processing status. Invalidate status-filtered caches only within the current knowledge space, including inactive filters; ordinary progress updates do not refetch document lists. Terminal transitions retain the existing refresh path. Keep discovered active tasks in the space-scoped runtime when server-side filters remove their document rows and their tasks are outside loaded history, so retry-wait and terminal events still update filtered results. Release retained snapshots after terminal reconciliation.
Dependency: https://github.com/langgenius/knowledge-fs/pull/77 must be deployed first. It adds the server-side query/status contract and filters before pagination.
Validation
vp run -w check,vp staged, and Web type checks passed for the final changes. The full frontend check reported existing repository warnings and zero errors. Backendmake lintandmake type-checkpassed for the initial implementation; the follow-up changes are frontend-only.The local integration run uses synthetic records; it does not cover file ingestion/model processing or reproduce the unverified staging deployment. An old-code browser comparison was not performed.
Screenshots
No before/after screenshots attached. Desktop and narrow-screen behavior were checked in the real local browser and in the composed-shell browser regressions above.
Checklist
make lint && make type-check(backend) andvp staged(frontend) to appease the lint gods